package com.gxy.learn.design.model.behaviour.visitor;

/**
 * @description: 访问者模式
 * @author: gaoxueyong
 * @Date: 2022/11/8 22:22
 */
public class Client {
    public static void main(String[] args) {
        Home home = new Home();
        home.add(new Dog());
        home.add(new Cat());

        home.action(new Owner());
    }
}
